import { App } from '@vue/runtime-dom'
import lazyPlugin from 'vue3-lazy'

import loadingIcon from '@/assets/images/blog.gif'
import errorIcon from '@/assets/images/error_pic.webp'

export default {
  install: (app: App) => {
    app.use(lazyPlugin, {
      loading: loadingIcon, // 图片加载时默认图片
      error: errorIcon// 图片加载失败时默认图片
    })
  }
}
